﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Peak.Web.Controllers
{
  public class Storage
  {
    private const string CurrentProjectId = "CurrentProjectId";
    private const string CurrentStoryId = "CurrentStoryId";

    private Storage()
    {      
    }

    public static Storage Current
    {
      get 
      { 
        return new Storage(); 
      }
    }

    public int? ProjectId
    {
      get 
      {
        return (int?)System.Web.HttpContext.Current.Session[CurrentProjectId];
      }
      set
      {
        System.Web.HttpContext.Current.Session[CurrentProjectId] = value;
      }
    }

    public int? StoryId
    {
      get
      {
        return (int?)System.Web.HttpContext.Current.Session[CurrentStoryId];
      }
      set
      {
        System.Web.HttpContext.Current.Session[CurrentStoryId] = value;
      }
    }
  }
}
